xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8"
xml.instruct! "xml-stylesheet", "type"=>"text/xsl", "href"=>"/stylesheets/opml.xslt.xml?#{Time.now.hour}", "version"=>"1.0" 
  xml.opml "version"=>"1.0" do
    xml.head do
      xml.title "All Feeds for #{current_user.login} from http://www.igag.us"
      xml.dateCreated Time.now.rfc2822
    end
    xml.body do
      @aggregations.each do |aggregation|
	    aggregation.feeds.each do |feed|
          xml.outline "text"=>CGI.escapeHTML(feed.title), 
             "xmlUrl"=>CGI.escapeHTML(feed.uri),
             "updated"=>CGI.escapeHTML(feed.updated_at.rfc2822),
             "created"=>CGI.escapeHTML(feed.created_at.rfc2822)
		end
      end
    end
  end